import Mock from 'mockjs'
const wmsInfo = {
  total: 10,
  'items|10': [{
    warehouseId: '@guid()',
    'company|1': ['天赋能', '胜依云'],
    'address|1': ['纬六道62号', '东九道45号'],
    desc: '@cname()',
    'place|1': ['中恩', '胜依云']
  }]
}
const storehouseInfo = {
  total: 2,
  'list|2': [{
    'id|+1': 1,
    storehouseId: '@guid()',
    warehouseId: '@guid()',
    desc: '@cparagraph(1)',
    inventory: '@integer(0)'
  }]
}
export default [
  // 获取仓库信息
  {
    url: '/get-warehouse-info',
    type: 'get',
    response: _ => {
      return {
        code: 20000,
        data: wmsInfo
      }
    }
  },
  {
    url: '/get-storehouse-info',
    type: 'get',
    response: _ => {
      return {
        code: 20000,
        data: storehouseInfo
      }
    }
  }
]
